package com.capinfo.service;

import com.capinfo.base.BaseService;
import com.capinfo.base.CurrentUser;
import com.capinfo.entity.CapPreApproval;

import java.util.Map;

/**
 * @author: sunbenjin
 * @date: 2020/2/27
 **/
public interface CapPreApprovalService extends BaseService<CapPreApproval,String> {
    Map<String,String> setSerialNo(String orderNamePre, int type);
    //将评论放在redis中
    void setApprovalSuggestionToRedis(CapPreApproval capPreApproval);

    int save(CapPreApproval capPreApproval);

    boolean isApproverRole(CurrentUser user);

}
